home *** CD-ROM | disk | FTP | other *** search
/ Champak 49 / Volume 49 - JOGO DISK .iso / Games / gatosaltarin.swf / scripts / DefineButton2_33 / BUTTONCONDACTION on(release, keyPress 5).as
Text File  |  2007-09-28  |  912b  |  51 lines

  1. on(release, keyPress "5"){
  2.    if(jumpFlg == "0")
  3.    {
  4.       jumpFlg = "1";
  5.       if("0" < eval("s" add stepNum))
  6.       {
  7.          direct = "1";
  8.       }
  9.       else
  10.       {
  11.          direct = "-1";
  12.       }
  13.       if(direct != olddirect)
  14.       {
  15.          setProperty("/player", _xscale, "-100");
  16.       }
  17.       olddirect = direct;
  18.       LastSetPos -= direct * "40";
  19.       tellTarget("player")
  20.       {
  21.          gotoAndPlay(2);
  22.       }
  23.       i = "1";
  24.       while(i < "8")
  25.       {
  26.          tellTarget("k" add i)
  27.          {
  28.             play();
  29.          }
  30.          i += "1";
  31.       }
  32.       tellTarget("kumo1")
  33.       {
  34.          play();
  35.       }
  36.       tellTarget("kumo2")
  37.       {
  38.          play();
  39.       }
  40.       tellTarget("bgGnd")
  41.       {
  42.          play();
  43.       }
  44.       tellTarget("hneko")
  45.       {
  46.          play();
  47.       }
  48.       setType = eval("s" add (stepNum + "5"));
  49.    }
  50. }
  51.